package com.xixibaby.core;

public interface SuperMq {
    /**
     * 发送消息到mq
     * @param delay 延时多久 -1 为立即发送
     */
    void sendMsgToMq(Object obj, Long delay);

    default void sendMsgToMq(Object obj, Integer delay){
        Integer l = (delay * 1000);
        this.sendMsgToMq(obj,l.longValue());
    }
}
